//
//  FeedbackTitleView.m
//  CoachsBook
//
//  Created by huiyong li on 2022/9/1.
//

#import "FeedbackTitleView.h"

@implementation FeedbackTitleView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self CreateUI];
    }
    return self;
}
-(void)CreateUI{
    UIView *backV = [[UIView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, 95)];
    backV.backgroundColor = [UIColor whiteColor];
    [self addSubview:backV];
    
    UIView *myDataLineV = [[UIView alloc]initWithFrame:CGRectMake(15, 15, 3, 15)];
    myDataLineV.backgroundColor = rgba(22, 120, 255, 1);
    myDataLineV.layer.cornerRadius = 2;
    [backV addSubview:myDataLineV];
    UILabel *myDataLab = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(myDataLineV.frame)+5, 15, 70, 15)];
    myDataLab.text = @"反馈标题";
    myDataLab.textColor = [UIColor blackColor];
    myDataLab.textAlignment = 0;
    myDataLab.font = kPingFangSemibold(16);
    [backV addSubview:myDataLab];
    
    
    UIView *BJview = [[UIView alloc]initWithFrame:CGRectMake(16, 45, APPwidth-32, 40)];
    BJview.backgroundColor = rgba(245, 245, 250, 1);
    BJview.layer.cornerRadius = 20;
    BJview.layer.masksToBounds = YES;
    [backV addSubview:BJview];
    self.FeedbackTitleField = [[UITextField alloc]initWithFrame:CGRectMake(25, 45, APPwidth-50, 40)];
    self.FeedbackTitleField.font = [UIFont systemFontOfSize:14];
    self.FeedbackTitleField.textColor = rgba(51, 51, 51, 1);
    self.FeedbackTitleField.placeholder = @"请输入反馈标题";

    [backV addSubview:self.FeedbackTitleField];
}

@end
